package org.example.myleet.p446;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(0 == solution.numberOfArithmeticSlices(new int[]{1}));
        Assert.isTrue(0 == solution.numberOfArithmeticSlices(new int[]{1,2}));
        Assert.isTrue(0 == solution.numberOfArithmeticSlices(new int[]{1, 1, 2, 5, 7}));
        Assert.isTrue(7 == solution.numberOfArithmeticSlices(new int[]{2,4,6,8,10}));
        Assert.isTrue(16 == solution.numberOfArithmeticSlices(new int[]{7,7,7,7,7}));
        Assert.isTrue(9 == solution.numberOfArithmeticSlices(new int[]{2,4,5,6,8,10}));
        Assert.isTrue(3 == solution.numberOfArithmeticSlices(new int[]{3, -1, -5, -9}));
        Assert.isTrue(1 == solution.numberOfArithmeticSlices(new int[]{1,2,1,2,4,1,5,10}));
        Assert.isTrue(5 == solution.numberOfArithmeticSlices(new int[]{4,3,1,3,4,7,8,2,3}));
        Assert.isTrue(17 == solution.numberOfArithmeticSlices(new int[]{7,5,4,3,1,3,4,7,8,2,3}));
        Assert.isTrue(3415 == solution.numberOfArithmeticSlices(new int[]{7,5,4,3,1,3,4,7,8,2,3,4,5,7,8,2,9,1,3,4,5,6,5,7,8,1,0,2,4,6,3,7,8,3,4,2,1,9,8,4,7,4,6,4,2,9,4}));
        Assert.isTrue(0 == solution.numberOfArithmeticSlices(new int[]{0,2000000000,-294967296}));
    }
}
